#include<iostream>
#include<unistd.h>
using namespace std;

int main(int argc, char* argv[], char* envp[])
{
  int i = 0;
  for(i = 0; i < argc; i++)
  {
    cout << argv[i] << ' ';
  }
  cout << endl;
  cout << argc << endl;

  i = 0;
  while(envp[i])
  {
    cout << envp[i] << endl;
    ++i;
  }
  cout << endl;

  return 0;

}
